.class public abstract Lnet/oauth/http/HttpResponseMessage;
.super Lnet/oauth/http/HttpMessage;
.source "HttpResponseMessage.java"


# static fields
.field public static final EOL:Ljava/lang/String; = "\r\n"

.field public static final LOCATION:Ljava/lang/String; = "Location"

.field public static final STATUS_CODE:Ljava/lang/String; = "HTTP status"

.field public static final STATUS_OK:I = 0xc8


# direct methods
.method protected constructor <init>(Ljava/lang/String;Ljava/net/URL;)V
    .locals 0
    .parameter "method"
    .parameter "url"

    .prologue
    .line 33
    invoke-direct {p0, p1, p2}, Lnet/oauth/http/HttpMessage;-><init>(Ljava/lang/String;Ljava/net/URL;)V

    .line 34
    return-void
.end method


# virtual methods
.method public dump(Ljava/util/Map;)V
    .locals 3
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 38
    .local p1, into:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-super {p0, p1}, Lnet/oauth/http/HttpMessage;->dump(Ljava/util/Map;)V

    .line 39
    const-string v1, "HTTP status"

    invoke-virtual {p0}, Lnet/oauth/http/HttpResponseMessage;->getStatusCode()I

    move-result v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    invoke-interface {p1, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 40
    const-string v1, "Location"

    invoke-virtual {p0, v1}, Lnet/oauth/http/HttpResponseMessage;->getHeader(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 41
    .local v0, location:Ljava/lang/String;
    if-eqz v0, :cond_0

    .line 42
    const-string v1, "Location"

    invoke-interface {p1, v1, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 44
    :cond_0
    return-void
.end method

.method public abstract getStatusCode()I
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation
.end method
